package com.hnguigu.health.houduan.lcj.mapper_lcj;

import com.hnguigu.health.houduan.lcj.pojo_lcj.TSetmeal_lcj;
import com.hnguigu.health.pojo.TSetmeal;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TSetmealMapper_lcj {
    int deleteByPrimaryKey(Integer id);

    int insert(TSetmeal_lcj record);

    int insertSelective(TSetmeal_lcj record);

    TSetmeal_lcj selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TSetmeal_lcj record);

    int updateByPrimaryKey(TSetmeal_lcj record);

    List<TSetmeal_lcj> findAll(String name);

    List<TSetmeal_lcj> getById(String memberId);

    @Delete("delete from t_setmeal where id=#{id}")
    int delById(String id);

    @Insert("insert into t_setmeal values(null,#{name},#{code},#{helpcode},#{sex},#{maxage},#{minage},#{price},#{remark},#{attention},#{img},#{createtime},#{updatetine})")
    int addSet(TSetmeal_lcj tSetmeal_lcj);

    @Select("select * from t_setmeal where namesk=#{code}")
    TSetmeal_lcj ById(String code);

    TSetmeal_lcj Lastbean();

}